package com.art.coconut.controller;

import com.art.coconut.example.service.ProcessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("coconut/")
public class CompareController {

    @Autowired
    ProcessService processService;

    @GetMapping("compareAll")
    public String compare() throws IllegalAccessException, InstantiationException {
        processService.testCoconut();
        return "sucess";
    }
}
